﻿imgwidth = $(window).width() - 50;
css_string = '*{margin:0;padding:0;}';
css_string += '.clearfix:after{content: ".";display: block;height: 0;clear: both;visibility: hidden;}';
css_string += '.clearfix{zoom:1;}';
css_string += 'ul,li{list-style:none;}';
css_string += '.wrapper{width:100%;margin:0 auto;margin-top:5px;margin-bottom:5px;}';
css_string += '#focus{width:' + imgwidth + 'px;height:452px;overflow:hidden;position:relative;}'; //
css_string += '#focus ul{height:452px;position:absolute;}';
css_string += '#focus ul li{float:left;width:' + imgwidth + 'px;height:452px;overflow:hidden;position:relative;background:#000;}'; //
css_string += '#focus ul li div{position:absolute;overflow:hidden;}';
css_string += '#focus ul li div img{position:relative;width:' + imgwidth + 'px;height:452px}'; //
//css_string += '#focus .preNext{width:45px;height:100px;position:absolute;top:90px;background:url(../img/sprite.png) no-repeat 0 0;cursor:pointer;}';
//css_string += '#focus .pre{left:0;}';
//css_string += '#focus .next{right:0;background-position:right top;}';
css_string += '#focus .btn {position:absolute;right:0;bottom:0;margin:10px;padding:0px;}';
css_string += '#focus .btn span {display:block;width:12px;height:0;padding-top:12px;background-image:url(../img/pagination.png);background-position:0 0;float:left;overflow:hidden;margin-left:2px;}';
css_string += '#focus .btn span.on {background-position:0 -12px;}';
document.write('<style type="text\/css">' + css_string + '<\/style>'); 